@extends('admin.layout.layout')
@section('content')
    <div class="row">
        <div class="col-lg-12">
            <h1 class="page-header">店铺修改</h1>
        </div>
        <!-- /.col-lg-12 -->
    </div>
    <!-- /.row -->
    <div class="panel-body">
        <div class="row">
            <div class="col-lg-6 col-lg-offset-3">
                    @if (count($errors) > 0)
                
                <div class="alert alert-danger">
                    <ul>
                        @foreach ($errors->all() as $error)
                            <li>{{ $error }}</li>
                        @endforeach
                    </ul>
                </div>
            @endif
                <form action="{{url('/admin/market/update')}}" method="post" enctype="multipart/form-data">
                    
                    <div class="form-group">
                        <label>店铺名</label>
                        <input class="form-control" type="text" name="mar_name" value="{{$markets->mar_name}}">
                    </div>
                    <div class="form-group">
                        <label>店铺LOGO</label>
                        <input  type="file" name="mar_pic" >
                    </div>
                    <input type="hidden" name="id" value="{{$markets->id}}">
                    <input type="hidden" name="use_id" value="{{$markets->use_id}}">
                        {{csrf_field()}}
                    <button type="submit" class="btn btn-primary btn-lg" style="margin-left:90px;width:100px">修改</button>
                    <button type="reset" class="btn btn-primary btn-lg" style="margin-left:100px;width:100px">重置</button>
                </form>
                </div>
            </div>
        </div>
   
@endsection